<!--
 * @Author: 杨文涓 943701297@qq.com
 * @Date: 2022-04-20 08:53:52
 * @LastEditors: 杨文涓 943701297@qq.com
 * @LastEditTime: 2022-05-08 09:22:46
 * @FilePath: \Webc:\Users\94370\Desktop\面向工作学习\html css\6-CSS 四 (第六天)\11-浮动元素搭配标准流父盒子.html
 * @Description: 
 * 
 * Copyright (c) 2022 by 杨文涓 943701297@qq.com, All Rights Reserved. 
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小米布局案例</title>
    <style>
        .box {
            width: 1200px;
            height: 460px;
            /* 在页面中间显示 */
            margin: 0 auto;
        }

        .left {
            float: left;
            width: 230px;
            height: 460px;
            background-color: rgba(51, 51, 51, .6);
        }

        .right {
            float: left;
            width: 970px;
            height: 460px;
            background-color: blue;
        }

        img {
            height: 100%;
            width: 100%;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="left">左侧</div>
        <div class="right"><a href="#"><img src="bg.jpg" alt=""></a></div>
    </div>
</body>

</html>